<script type="text/javascript" src="{{$smarty.const.__SHARE__}}plug/ZeroClipboard/ZeroClipboard.js"></script>
<script>
$(function(){
	$('.copy').each(function(){
		var id = $(this).attr('id');
		$('#'+id).zclip({
	        path: '{{$smarty.const.__SHARE__}}plug/ZeroClipboard/ZeroClipboard.swf',
	        copy: $('#'+id).attr('id'),
	        beforeCopy: function(){
	            //alert('aaaa');
	        },
	        afterCopy:function(){
	            ui.success("复制成功！",1000);
	        }
	    });
	    //beforeCopy afterCopy 是可选项
	});
});
</script>